package com.hanelalo.gaugepro;

import com.thoughtworks.gauge.AfterSpec;
import com.thoughtworks.gauge.BeforeSpec;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.context.ApplicationContext;

public class GaugeProSpec {

  private ApplicationContext context;

  @BeforeSpec(tags = "Init")
  public void init() {
    System.out.println("初始化容器");
    context =
        new SpringApplicationBuilder(GaugeProTestConfiguration.class)
            .web(WebApplicationType.SERVLET)
            .run();
  }

  @AfterSpec(tags = "Init")
  public void shutdown(){
  }

}
